package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wangxinyi
 * @Date 2025/1/11 15:59
 */
@RestController
@RequestMapping("/sign-records")
public class SignRecordsController {

    @Autowired
    private ISignRecordsService signRecordsService;


    /**
     * 签到功能
     * @return
     */
    @PostMapping
    public SignResultVO getSign() {
        return signRecordsService.getSign();
    }
}
